import impl.Audience;
import impl.PerformanceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import services.Performance;

import java.lang.reflect.Method;

public class mainTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext("config.PerformanceConfig");
        Performance bean = annotationConfigApplicationContext.getBean(Performance.class);
        Class aClass = bean.getClass();
        try {
            Method method = aClass.getMethod("performEncore");
            method.invoke(bean);
        } catch (Exception e) {
        }
        bean.perform("chu shi can shu");
    }
}
